<template>
    <div style="margin: 0px 10px 10px 0px;">
        <van-radio :value="value" @input="val => this.$emit('input', val)" :name="name" label-disabled @click="click"><slot></slot>{{this.label}}</van-radio>
    </div>
</template>
<script>
export default {
    name:"eagle-radio",
    props:{
        name:{
            type: [String,Number,Boolean,Date],
            default() {
                return "";
            },
        },
        label: {
            type: String,
            default() {
                return "";
            },
        },
        value: {
            type: String | Number,
            default() {
                return null;
            },
        },
        shape:{
            type: String,
            default() {
                return "square";
            },
        },
        disabled: {
            type: Boolean,
            default() {
                return false;
            },
        },
    },
    watch:{
    },
    methods:{
        click(){
            this.$emit("click");
        }
    }
}
</script>